import request from '@/utils/request'

export function addConfigValue(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-value',
    data: data,
    method: 'post'
  })
}

export function delConfigValue(id) {
  return request({
    url: '/sys-service/inner-api/sys/config-value/' + id,
    method: 'delete'
  })
}

export function updateConfigValue(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-value',
    data: data,
    method: 'put'
  })
}

export function getConfigValue(id) {
  return request({
    url: '/sys-service/inner-api/sys/config-value/' + id,
    method: 'get'
  })
}

export function pageConfigValue(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-value/page',
    method: 'post',
    data: data
  })
}
